package com.example.common.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.math.BigInteger;
import java.time.LocalDateTime;

@Entity
@Table(name = "sys_log")
@Data
public class SysLog {
    @Id
    @Column(name = "log_id", nullable = false)
    private BigInteger logId;
    
    private String description, method, username, address, browser;
    
    @Column(name = "log_type")
    private String logType;
    
    @Column(columnDefinition = "TEXT")
    private String params;
    
    @Column(name = "request_ip")
    private String requestIp;
    
    private BigInteger time;
    
    @Column(name = "exception_detail", columnDefinition = "TEXT")
    private String exceptionDetail;
    
    @Column(name = "create_time")
    private LocalDateTime createTime;
    
    public BigInteger getLogId() {
        return logId;
    }
    
    public void setLogId(BigInteger logId) {
        this.logId = logId;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getLogType() {
        return logType;
    }
    
    public void setLogType(String logType) {
        this.logType = logType;
    }
    
    public String getParams() {
        return params;
    }
    
    public void setParams(String params) {
        this.params = params;
    }
    
    public String getRequestIp() {
        return requestIp;
    }
    
    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }
    
    public BigInteger getTime() {
        return time;
    }
    
    public void setTime(BigInteger time) {
        this.time = time;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    public String getBrowser() {
        return browser;
    }
    
    public void setBrowser(String browser) {
        this.browser = browser;
    }
    
    public String getExceptionDetail() {
        return exceptionDetail;
    }
    
    public void setExceptionDetail(String exceptionDetail) {
        this.exceptionDetail = exceptionDetail;
    }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    
    public String getMethod() {
        return method;
    }
    
    public void setMethod(String method) {
        this.method = method;
    }
}
